package com.zzh.jn_erp.user.dao.impl;


import com.zzh.jn_erp.common.CommonSqlSessionSupport;
import com.zzh.jn_erp.user.dao.UserDao;
import com.zzh.jn_erp.user.entity.User;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoImpl extends CommonSqlSessionSupport implements UserDao {

    /**
     * 校验登录人
     * @param user 参数
     * @return
     */
    @Override
    public int validateUser(User user) {
        return this.getSqlSession().selectOne("com.zzh.jn_erp.user.dao.impl.UserDaoImpl.validateUser", user);
    }


}
